package com.yh.travel.core.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yh.travel.core.dao.ICrudDao;
import com.yh.travel.core.pojo.BaseEntity;
import com.yh.travel.core.service.ICrudService;

/**
 * @ClassName CrudServiceImpl
 * @Description 实现类
 * @Author 0715-YuHao
 * @Date 2020/10/31 11:18
 */
public class CrudServiceImpl<M extends ICrudDao<T>,T extends BaseEntity> extends ServiceImpl<M, T> implements ICrudService<T> {

    @Override
    public IPage<T> listPage(IPage<T> page, T entity) {
        return baseMapper.selectByPage(page, entity);
    }
}
